package com.GraduationDesign.backend.vo;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * @author DestinyCc
 * @date 2022/5/15
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class CodeQuality {
    /**
     * 文件名
     */
    String filename;

    Quality curr;

    Quality deviation;

    @Data
    @AllArgsConstructor
    @NoArgsConstructor
    @Builder
    public static class Quality implements Serializable {
        /**
         * 复杂性
         */
        Double complexity;

        /**
         * 继承性
         */
        Double inheritance;

        /**
         * 可维护性
         */
        Double maintainability;

        /**
         * 可读性
         */
        Double readability;

        /**
         * 可复用性
         */
        Double reuseablity;

        /**
         * 可测试性
         */
        Double testability;

        /**
         * 可扩展性
         */
        Double extendability;

        /**
         * 安全性
         */
        Double security;
    }
}
